#include <assert.h>
#include <string.h>
#include "AstNodeFuncDefStatement.h"
#include "CompileVisitor.h"

AstNodeFuncDefParm::AstNodeFuncDefParm(const char * name, const char * type)
{
  this->name=strdup(name);
  this->type=strdup(type);
}

void AstNodeFuncDefParm::dump(int level)
{
  // ??
}

void AstNodeFuncDefParm::compile(CompileVisitor * visitor)
{
  assert(0);
}

int AstNodeFuncDefParm::compile(ClassFile * klass, MethodInfo * method)
{
  assert(0 && "Not intended to be compiled");
  return 0;
}


void AstNodeFuncDefStatement::compile(CompileVisitor * visitor)
{
  assert(0);
}

AstNodeFuncDefStatement::AstNodeFuncDefStatement()
{
  printf("%s: called\n",__FUNCTION__);
}

void AstNodeFuncDefStatement::dump(int level)
{
}

int  AstNodeFuncDefStatement::compile(ClassFile * klass, MethodInfo * method)
{
  printf("compiling function definition\n");
  return 0;
}
